﻿//---Standard Plane Config for Flans Mod----------
//Created by Minecraft-SMP Toolbox 2.1.2.6


//---Standard-------------------------------------
// Naming
Name Yakovlev Yak-9P Frank
ShortName Yak-9P_China


// Visuals
Model pla.yak9p_china
ModelScale 1
Icon iconyak9p_china

//---Driveables-----------------------------------
//Visuals
Texture yak9p_china

//Movement
MaxThrottle 0.84
MaxNegativeThrottle 0.0


//Wheels
NumWheels 3
WheelPosition 0 38 -27 -35
WheelPosition 1 38 -27 35
WheelPosition 2 -73 -10 0
WheelSpringStrength 0.125

//Ammo
AllowAllAmmo true

//Weapons
Primary Gun
Secondary None
ShootDelayPrimary 6
ShootDelaySecondary 25
AlternatePrimary False
AlternateSecondary True
ModePrimary FullAuto
ModeSecondary SemiAuto
ShootPointPrimary 75 13 -4 nose rpd
ShootPointPrimary 75 13 4 nose rpd

//Driver and Passengers
Pilot 5 -1 0
Passengers 0

//Inventory Slots
CargoSlots 0
BombSlots 0
MissileSlots 0
FuelTankSize 4000

//Recipe
AddRecipeParts core 1 SMP_Part_Cockpit_Jet 6 SMP_Part_Mat_Plate_Steel
AddRecipeParts nose 1 SMP_Part_Nose_Plane 3 SMP_Part_Mat_Plate_Steel
AddRecipeParts tail 1 SMP_Part_Tail_Jet 5 SMP_Part_Mat_Plate_Steel
AddRecipeParts leftWing 1 SMP_Part_Wing_Jet 5 SMP_Part_Mat_Plate_Steel
AddRecipeParts rightWing 1 SMP_Part_Wing_Jet 5 SMP_Part_Mat_Plate_Steel
AddRecipeParts leftWingWheel 1 SMP_Part_Wheel_Plane
AddRecipeParts rightWingWheel 1 SMP_Part_Wheel_Plane
AddRecipeParts tailWheel 1 SMP_Part_Wheel_Plane
AddDye 6 gray

SetupPart core 30 -18 24 -5 10 20 10
SetupPart airframe 85 -8 -7 -10 25 24 20
SetupPart rightWing 32 -3 -2 10 28 2 72
SetupPart leftWing 32 -3 -2 -78 28 2 72
SetupPart tail 36 -70 -5 -8 18 14 16
ModelScale 1.0
BulletDetection 4
//Collision points for breaking wings etc. upon crashing
//RightWing
CollisionPoint 9 -3 80 rightWing
CollisionPoint 9 -3 60 rightWing
CollisionPoint 9 -3 40 rightWing
CollisionPoint 9 -3 20 rightWing
//LeftWing
CollisionPoint 9 -3 -80 leftWing
CollisionPoint 9 -3 -60 leftWing
CollisionPoint 9 -3 -40 leftWing
CollisionPoint 9 -3 -20 leftWing
//Nose
CollisionPoint 20 2 0 core
CollisionPoint 40 2 0 core
CollisionPoint 20 2 0 core
CollisionPoint 40 2 0 core
CollisionPoint 20 2 0 core
CollisionPoint 40 2 0 core
CollisionPoint 20 2 0 core
CollisionPoint 40 2 0 core
//Bay
CollisionPoint -60 2 0 tail
CollisionPoint -40 2 0 tail
//Tail
CollisionPoint -80 2 0 tail

BulletSpeed 4.5
BulletSpread 2

IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.21
CollisionDamageTimes 20

//Misc
CameraDistance 10.0

//Sounds
StartSound propStart
StartSoundLength 20
PropSound propSound
PropSoundLength 30
ShootSoundPrimary YakShoot
ShootSoundSecondary warthunder30mm
PlaceSoundPrimary A6M2_PlaceSound

//---Plane----------------------------------------
//Flying Mode
Mode Plane

//Movement
TurnLeftSpeed 2
TurnRightSpeed 2
LookUpSpeed 2
LookDownSpeed 2
RollLeftSpeed 2
RollRightSpeed 2

//Misc
RestingPitch 13.0

//Propeller
Propeller 0 -83 -24 0 nose metalPropeller